package com.qianli.user.enums;

public enum BindCardValidStatusEnum {

    INTI(0, "初始状态，未绑卡"),
    SUCCESS(1, "认证成功"),
    REBIND(2, "重绑卡"),
    FAIL(3,"绑定失败");


    private Integer status;
    private String desc;

    BindCardValidStatusEnum(Integer status, String desc) {
        this.status = status;
        this.desc = desc;
    }

    public Integer getStatus() {
        return status;
    }

    public BindCardValidStatusEnum setStatus(Integer status) {
        this.status = status;
        return this;
    }

    public String getDesc() {

        return desc;
    }

    public BindCardValidStatusEnum setDesc(String desc) {
        this.desc = desc;
        return this;
    }

    public static String getDesc(Integer status) {
        String desc = "";
        for (BindCardValidStatusEnum enums : BindCardValidStatusEnum.values()) {
            if (enums.getStatus() == status) {
                desc = enums.getDesc();
                break;
            }
        }

        return desc;
    }

}
